<template>
  <div class="tab_con" v-show="istab">
    <div class="tab_con_nei">
      <div @click="fn3">
        <slot name="one"></slot>
      </div>
      <div @click="fn">
        <slot name="two"></slot>
      </div>
      <div @click="fn1">
        <slot name="three"></slot>
      </div>
      <div @click="fn2">
        <slot name="fore"></slot>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  computed: {
    istab() {
      return this.$route.meta.isTab;
    },
    // fn1() {
    //   return this.path === this.$router.path;
    // },
  },
  methods: {
    fn() {
      this.$router.push("/mod");
    },
    fn1() {
      this.$router.push("/cart");
    },
     fn2() {
      this.$router.push("/my");
    },
    fn3(){
       this.$router.push("/");
    }
  },
};
</script>
<style lang="scss">
.tab_con {
  width: 100%;
  height: 3.2rem;
  background: rgb(245, 210, 210);
  position: fixed;
  left: 0;
  bottom: 0;
}
.tab_con_nei {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
</style>